﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using qman.DataHelp;

public partial class Private_ViewPriceQuotes : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Request.Cookies["cookUser"] != null)
        {
            this.Session["user"] = this.Request.Cookies["cookUser"].Value;
        }
        if (this.Session["user"] != null)
        {
            DataSet ds;
            ds = qman.DataHelp.DataAccess.getDataSet("select * from quotes q where q.[user] = '" + this.Session["user"].ToString() + "' order by date desc");
            if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                this.GridView1.DataSource = ds;
                this.GridView1.DataBind();
            }
        }
    }
}
